package cn.iocoder.mall.resource.dataobject;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.List;

/**
 * @Description: 商品类目/商户类型
 * @Author: jeecg-boot
 * @Date:   2019-10-30
 * @Version: V1.0
 */
@Data
@TableName("shop_type")
public class ShopType {
    
	/**id*/
	@TableId(type = IdType.AUTO)
	private Integer id;
	/**1 ：商铺类型 2 ：商品类型 */
	@JsonInclude(JsonInclude.Include.NON_EMPTY)
	private Integer type;
	/**名称*/
	private String name;
	/**上一级id*/
	private Integer parentId;
	/**备注*/
	private String note;

	@TableField(exist = false)
	@JsonInclude(JsonInclude.Include.NON_EMPTY)
	private List<ShopType> children;

	private String picture;
	private Integer level;

}
